pp108 : ontabunload Event

ontabunload Event


This event is fired when a tab is unloaded.

Syntax

Inline HTML

<div cordysType="wcp.library.ui.Tabs" id = "tabID" ontabunload="handler()">

Event property

tabID.ontabunload = handler


Event Information

To invoke

Close a tab usingclose()method or click the "X" mark on the tab header that needs to be closed.

Default Action

Closes the tab on which the event occurred and initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property

Description

tabContent

Read-only. Object that contains the content of the tab that is currently unloaded.

tabId

Read-only. String that denotes the unique identifier of the tab that is unloaded.



ThetabContentproperty contains the tab that is currently unloaded, which is the SPAN element. Below is a sample data that is received when the tab "test" is unloaded.

<SPAN style="WIDTH: 100%; HEIGHT: 100%" tabId="test"/>

See Also


tabs